package _17_graph;

/**
 * @author: mornd
 * @dateTime: 2023/6/21 - 20:47
 * 边定义
 */
public class Edge {
    Vertex linked;
    int weight;

    public Edge(Vertex linked) {
        this(linked, 1);
    }

    public Edge(Vertex linked, int weight) {
        this.linked = linked;
        this.weight = weight;
    }
}
